package com.sh.caryr.erp.entity.enums;

import com.baomidou.mybatisplus.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

public enum ExpressType implements IEnum {
    EXPRESS(1,"快递"),
    LOGISTIC(2,"物流");

    private final int value;
    private final String desc;

    ExpressType(final int value, final String desc) {
        this.value = value;
        this.desc = desc;

    }

    @JsonValue
    @Override
    public Serializable getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
